home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / linux.faq < prev    next >
Encoding:
Internet Message Format  |  1994-01-05  |  61.9 KB

  1. Subject: Linux Frequently Asked Questions with Answers
  2. Newsgroups: comp.os.linux.announce,comp.os.linux.help,comp.answers,news.answers
  3. From: ijackson@nyx.cs.du.edu (Ian Jackson)
  4. Date: Mon, 3 Jan 1994 17:07:23 GMT
  5.  
  6. Archive-Name: linux/faq
  7. Last-Modified: 03 Jan 1994
  8.  
  9. This is the list of Frequently Asked Questions about Linux, the free Unix
  10. for 386/486 [see Q1.1 `What is Linux ?' for more details].  It should be
  11. read in conjunction with the HOWTO documents, which are available in
  12.    ftp.funet.fi (128.214.6.100)   /pub/OS/Linux/doc/HOWTO
  13.    tsx-11.mit.edu (18.172.1.2)    /pub/linux/docs/HOWTO
  14.    sunsite.unc.edu (152.2.22.81)  /pub/Linux/docs/HOWTO
  15. and mirror sites thereof -- see Q2.4 `Where can I get Linux material by
  16. FTP ?'.  See Q2.1 `Where can I get the HOWTOs and other documentation ?'
  17. for a list of the HOWTOs and more information.  The INFO-SHEET and
  18. META-FAQ, found in the same place, also list other sources of Linux
  19. information.
  20.  
  21. The Linux Documentation Project documentation is available on
  22. sunsite.unc.edu in /pub/Linux/docs/LDP.  These documents (more are in
  23. preparation) are invaluable to the newcomer or for use as a reference
  24. work.
  25.  
  26. Please check out these documents and this FAQ, especially Q9.1 `You still
  27. haven't answered my question !', before posting your question to the
  28. newsgroup comp.os.linux.help.
  29.  
  30. You can skip to a particular question by searching for `Question n.n'.
  31. See Q10.2 `Formats in which this FAQ is available' for details of where to
  32. get the PostScript and Emacs Info versions of this document.
  33.  
  34. ===============================================================================
  35.  
  36. Index
  37.  
  38.  Section 1.  Introduction and General Information
  39.  Q1.1        What is Linux ?
  40.  Q1.2        What software does it support ?
  41.  Q1.3        Does it run on my computer ?  What hardware is supported ?
  42.  Q1.4        How much hard disk space does Linux need ?
  43.  Q1.5        Is Linux PD ?  Copyrighted ?
  44.  Q1.6        How should I pronounce Linux ?
  45.  
  46.  Section 2.  Network sources and resources
  47.  Q2.1        Where can I get the HOWTOs and other documentation ?
  48.  Q2.2        What newsgroups are there for Linux ?
  49.  Q2.3        How do I install Linux ?
  50.  Q2.4        Where can I get Linux material by FTP ?
  51.  Q2.5        I don't have FTP access.  Where do I get Linux ?
  52.  Q2.6        I don't have Usenet access.  Where do I get information ?
  53.  Q2.7        What's this mailing list thing at niksula.hut.fi ?
  54.  Q2.8        Are the newsgroups archived anywhere ?
  55.  
  56.  Section 3.  Compatibility with other operating systems
  57.  Q3.1        Can Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?
  58.  Q3.2        How do I access files on my DOS partition or floppy ?
  59.  Q3.3        Can I use my Stacked/DBLSPC/etc. DOS drive ?
  60.  Q3.4        Can I access OS/2 HPFS, BSD FFS, Mac, Amiga, etc filesystems ?
  61.  Q3.5        Can I run Microsoft Windows programs under Linux ?
  62.  Q3.6        How can I boot Linux from OS/2's Boot Manager ?
  63.  
  64.  Section 4.  Linux's handling of filesystems, disks and drives
  65.  Q4.1        How do I format and create a filesystem on a floppy ?
  66.  Q4.2        I get nasty messages about inodes, blocks, and the suchlike
  67.  Q4.3        My swap area isn't working.
  68.  Q4.4        How can I have more than 16Mb of swap ?
  69.  Q4.5        How do I remove LILO so my system boots DOS again ?
  70.  Q4.6        Why can't I use fdformat except as root ?
  71.  Q4.7        Is there something like Stacker or Doublespace for Linux ?
  72.  
  73.  Section 5.  Porting, compiling and obtaining programs
  74.  Q5.1        What is ld.so and where do I get it ?
  75.  Q5.2        Has anyone ported / compiled / written XXX for Linux ?
  76.  Q5.3        How do I port XXX to Linux ?
  77.  Q5.4        Can I use code or a compiler compiled for a 486 on my 386 ?
  78.  Q5.5        GCC sometimes uses huge amounts of virtual memory and thrashes
  79.  Q5.6        What does gcc -O6 do ?
  80.  Q5.7        Where are <linux/*.h> and <asm/*.h> ?
  81.  Q5.8        I get errors when I try to compile the kernel.
  82.  
  83.  Section 6.  Miscellaneous questions and problems
  84.  Q6.1        Setuid scripts don't seem to work.
  85.  Q6.2        Free memory as reported by free keeps shrinking.
  86.  Q6.3        What is a BogoMip ?
  87.  Q6.4        How do I set the timezone ?
  88.  Q6.5        What version of Linux and what machine name am I using ?
  89.  Q6.6        When I add more memory it slows to a crawl.
  90.  Q6.7        Some programs (e.g. xdm) won't let me log in.
  91.  Q6.8        Some programs let me log in with no password.
  92.  Q6.9        My machine runs very slowly when I run GCC / X / ...
  93.  Q6.10       I can only log in as root.
  94.  Q6.11       How do I stop producing core files ?
  95.  Q6.12       My screen is all full of weird characters instead of letters.
  96.  Q6.13       What is a .gz file ? And a .tgz ? And ... ?
  97.  Q6.14       I have screwed up my system and can't log in to fix it.
  98.  Q6.15       How do I upgrade my kernel ?
  99.  Q6.16       Can I have more than 3 serial ports by sharing interrupts ?
  100.  Q6.17       Emacs just dumps core.
  101.  Q6.18       How do I make a bootable floppy ?
  102.  Q6.19       How do I remap my keyboard to UK, French, etc. ?
  103.  
  104.  Section 7.  Frequently Encountered Error messages
  105.  Q7.1        INET: Warning: old style ioctl(IP_SET_DEV) called!
  106.  Q7.2        ld: unrecognized option '-m486'
  107.  Q7.3        GCC says Internal compiler error
  108.  Q7.4        make says Error 139
  109.  Q7.5        df says Cannot read table of mounted filesystems
  110.  Q7.6        shell-init: permission denied when I log in.
  111.  Q7.7        No utmp entry.  You must exec ... when I log in.
  112.  Q7.8        EXT2-fs: warning: mounting unchecked filesystem
  113.  Q7.9        fdisk says cannot use nnn sectors of this partition
  114.  Q7.10       fdisk says partition n has an odd number of sectors
  115.  
  116.  Section 8.  X Windows
  117.  Q8.1        Does Linux support X Windows ?
  118.  Q8.2        Where can I get an XConfig for my video card and monitor ?
  119.  Q8.3        I can't get X Windows to work right.
  120.  
  121.  Section 9.  How to get further assistance
  122.  Q9.1        You still haven't answered my question !
  123.  Q9.2        What to put in a posting to comp.os.linux.help
  124.  
  125.  Section 10. Administrative information and acknowledgements
  126.  Q10.1       Feedback is invited
  127.  Q10.2       Formats in which this FAQ is available
  128.  Q10.3       Authorship and acknowledgements
  129.  
  130. ===============================================================================
  131.  
  132. Section 1.  Introduction and General Information
  133.  
  134.  Q1.1        What is Linux ?
  135.  Q1.2        What software does it support ?
  136.  Q1.3        Does it run on my computer ?  What hardware is supported ?
  137.  Q1.4        How much hard disk space does Linux need ?
  138.  Q1.5        Is Linux PD ?  Copyrighted ?
  139.  Q1.6        How should I pronounce Linux ?
  140.  
  141. -------------------------------------------------------------------------------
  142.  
  143. Question 1.1.  What is Linux ?
  144.  
  145. Linux is a Unix clone for 386/486-based PCs written from scratch by Linus
  146. Torvalds with assistance from a loosely-knit team of hackers across the
  147. Net.  It aims towards POSIX compliance.
  148.  
  149. It has all the features you would expect in a modern fully-fledged Unix,
  150. including true multitasking, virtual memory, shared libraries, demand
  151. loading, shared copy-on-write executables, proper memory management and
  152. TCP/IP networking.
  153.  
  154. It uses the hardware features of the 386 processor family (TSS segments et
  155. al) to implement these features.
  156.  
  157. Linux is still considered to be in beta testing; due to the rapid pace of
  158. development new bugs are often introduced.  Despite this, Linux is very
  159. stable if you don't always immediately use the latest alpha-release kernel
  160. software.
  161.  
  162. See the Linux INFO-SHEET [Q2.1 `Where can I get the HOWTOs and other
  163. documentation ?'] for more details.
  164.  
  165. It is distributed under the GNU General Public License - see Q1.5 `Is
  166. Linux PD ?  Copyrighted ?' for more details.
  167.  
  168. -------------------------------------------------------------------------------
  169.  
  170. Question 1.2.  What software does it support ?
  171.  
  172. Linux has GCC, Emacs, X-Windows, TCP/IP, all the standard Unix utilities
  173. and all the hundreds of programs that people have compiled or ported for
  174. it.
  175.  
  176. There is a DOS emulator [Q3.1 `Can Linux coexist with DOS ?  OS/2 ?
  177. 386BSD ?  Minix ?'] and work is progressing on a facilities to allow SVR4
  178. ELF, SVR3.2 COFF and Microsoft Windows binaries [Q3.5 `Can I run Microsoft
  179. Windows programs under Linux ?'] to be run under Linux and X Windows.
  180.  
  181. For more information see the INFO-SHEET, which is one of the the HOWTOs
  182. --- see above, or Q2.1 `Where can I get the HOWTOs and other documentation
  183. ?'.  See also Q5.3 `How do I port XXX to Linux ?'.
  184.  
  185. -------------------------------------------------------------------------------
  186.  
  187. Question 1.3.  Does it run on my computer ?  What hardware is supported ?
  188.  
  189. You need a 386 or 486, with at least 2Mb of RAM and a single floppy, to
  190. try it out.  To do anything useful more RAM and a hard disk are required.
  191. Reportedly Linux also works on a Pentium.
  192.  
  193. Linux doesn't currently work on machines using MCA (IBM's proprietary
  194. bus), because of lack of available documentation.  You may be able to it
  195. to work if you your hard disk is on certain kinds of controller (some SCSI
  196. controllers work, I understand), but you're on your own.
  197.  
  198. It should work with VESA local bus machines, provided that the local bus
  199. cards really are equivalent to the equivalent ISA ones.  Linux is reported
  200. to run on 386/486-based laptops, with X on most of them.
  201.  
  202. For details of exactly which PC's, video cards, disk controllers, etc.
  203. work see the INFO-SHEET and the Hardware Compatibility List [Q2.1 `Where
  204. can I get the HOWTOs and other documentation ?'].
  205.  
  206. Linux will never run on a 286, because it uses task-switching and memory
  207. management facilities only found on 386/486 processors.
  208.  
  209. A project is underway to port Linux to suitable 68000-series based
  210. systems, but this is still at a very early stage of development.  Don't
  211. post asking about it unless you think you can contribute to it, and don't
  212. hold your breath.
  213.  
  214. -------------------------------------------------------------------------------
  215.  
  216. Question 1.4.  How much hard disk space does Linux need ?
  217.  
  218. 10Mb for a very minimal installation, suitable for trying it out and not
  219. much else.
  220.  
  221. You can squeeze a more complete installation including X Windows into
  222. 80Mb.  The SLS 1.03 distribution (which I would recommend you stay well
  223. clear of - it has a number of serious and annoying bugs) takes around
  224. 100Mb.
  225.  
  226. -------------------------------------------------------------------------------
  227.  
  228. Question 1.5.  Is Linux PD ?  Copyrighted ?
  229.  
  230. The Linux kernel copyright belongs to Linus Torvalds.  He has placed it
  231. under the GNU General Public Licence, which basically means that you may
  232. freely copy, change and distribute it, but that you may not impose any
  233. restrictions on further distribution.
  234.  
  235. Full details are in the file COPYING in the Linux kernel sources (probably
  236. in /usr/src/linux on your system).
  237.  
  238. The copyright of the utilities and programs which come with the
  239. installations vary; much of the code is from the GNU Project at the Free
  240. Software Foundation, and is also under the GPL.
  241.  
  242. Note that discussion about the merits or otherwise of the GPL should be
  243. posted to gnu.misc.discuss and not to the comp.os.linux groups.
  244.  
  245. -------------------------------------------------------------------------------
  246.  
  247. Question 1.6.  How should I pronounce Linux ?
  248.  
  249. Linus says: `li' is pronounced with a short (ee) sound: compare prInt,
  250. mInImal etc.  `nux' is also short, non-diphtong, like in pUt.  It's partly
  251. due to Minix: Linux was just my working name for the thing, and as I wrote
  252. it to replace Minix on my system, the result is what it is...  Linus'
  253. minix became Linux.
  254.  
  255. I originally intended it to be called freax (although buggix was one
  256. contender after I got fed up with some of the more persistent bugs :) and
  257. I think the kernel makefiles up to version 0.11 had something to that
  258. effect (`Makefile for the freax kernel' in a comment).  But arl called the
  259. linux directory at nic.funet.fi [now ftp.funet.fi - iwj] pub/OS/Linux, and
  260. the name stuck.  Maybe just as well: freax doesn't sound too good either
  261. (freax is obviosly free + freak + the obligatory -x).
  262.  
  263. Rik Faith's note for English speakers: Linux --- `LIH-nuhks'.
  264.  
  265. ===============================================================================
  266.  
  267. Section 2.  Network sources and resources
  268.  
  269.  Q2.1        Where can I get the HOWTOs and other documentation ?
  270.  Q2.2        What newsgroups are there for Linux ?
  271.  Q2.3        How do I install Linux ?
  272.  Q2.4        Where can I get Linux material by FTP ?
  273.  Q2.5        I don't have FTP access.  Where do I get Linux ?
  274.  Q2.6        I don't have Usenet access.  Where do I get information ?
  275.  Q2.7        What's this mailing list thing at niksula.hut.fi ?
  276.  Q2.8        Are the newsgroups archived anywhere ?
  277.  
  278. -------------------------------------------------------------------------------
  279.  
  280. Question 2.1.  Where can I get the HOWTOs and other documentation ?
  281.  
  282. Look in the following places, and on sites that mirror them.
  283.    ftp.funet.fi (128.214.6.100)   /pub/OS/Linux/doc/HOWTO
  284.    tsx-11.mit.edu (18.172.1.2)    /pub/linux/docs/HOWTO
  285.    sunsite.unc.edu (152.2.22.81)  /pub/Linux/docs/HOWTO
  286. For a complete list of Linux FTP sites see Q2.3 `How do I install Linux
  287. ?'.
  288.  
  289. If you don't have access to FTP try using one of the FTP-by-mail servers,
  290. such as mail-server@rtfm.mit.edu or ftpmail@decwrl.dec.com.
  291.  
  292. A complete list of HOWTO's is available in the file HOWTO.INDEX in the
  293. docs/HOWTO directory at the FTP sites, but here is a (possibly incomplete)
  294. list:
  295.  
  296.           Installation HOWTO            Electronic Mail HOWTO
  297.           Linux INFO-SHEET              UUCP HOWTO
  298.           Linux META-FAQ                SCSI HOWTO
  299.           NET-2 HOWTO                   Printing HOWTO
  300.           Ethernet HOWTO                Hardware Comaptibility HOWTO
  301.           News HOWTO                    XFree86 HOWTO
  302.           Distribution HOWTO
  303.  
  304. Some more of these documents are in preparation.  You should check in
  305. nearby directories on the FTP sites if you can't find the answer in one of
  306. the new-style HOWTOs.
  307.  
  308. The HOWTO.INDEX also contains information on how to write a new HOWTO.
  309.  
  310. The HOWTOs are coordinated by Matt Welsh, <mdw@sunsite.unc.edu>.
  311.  
  312. The `books' produced by the Linux Documentation Project are available in
  313. /pub/Linux/docs/LDP on sunsite.unc.edu.  Please read them if you are new
  314. to Unix and Linux.  Here is a list of those released so far:
  315.  
  316.           The Linux Documentation Project manifesto
  317.           Installation and Setup Guide for Linux
  318.           The Kernel Hacker's Guide
  319.           Network Administration Guide
  320.           Linux System Administrator's Guide
  321.  
  322. -------------------------------------------------------------------------------
  323.  
  324. Question 2.2.  What newsgroups are there for Linux ?
  325.  
  326. There are five Usenet newsgroups devoted to Linux.
  327.  
  328. comp.os.linux.announce is the moderated announcements group; you should
  329. read this if you intend to use Linux.  Submissions for that group should
  330. be emailed to linux-announce@tc.cornell.edu.
  331.  
  332. comp.os.linux.help, comp.os.linux.development, comp.os.linux.admin and
  333. comp.os.linux.misc are also worth reading -- you will find that many
  334. common problems are too recent to find in this FAQ but are answered in the
  335. newsgroups.
  336.  
  337. Since Linux is a Unix clone, many of the comp.unix.* and comp.windows.x.*
  338. groups will also contain relevant material.
  339.  
  340. Please read Q9.1 `You still haven't answered my question !' before
  341. posting, and make sure you post to the right newsgroup.  Crossposting is
  342. rarely a good idea.
  343.  
  344. See also Q2.6 `I don't have Usenet access.  Where do I get information ?'.
  345.  
  346. -------------------------------------------------------------------------------
  347.  
  348. Question 2.3.  How do I install Linux ?
  349.  
  350. There are several pre-packaged releases of Linux available, including the
  351. MCC-Interim release, the TAMU release and the Slackware release.  Each
  352. contains the software you need to run linux, ready to install and use.
  353. The exact details of which software is included and how to install them
  354. vary from release to release.
  355.  
  356. You should read the Installation HOWTO for more details on how to go about
  357. installing Linux.  Note, though, that despite its heavy emphasis on the
  358. SLS release I would strongly recommend against using SLS for any new Linux
  359. installation; you should consider using MCC-Interim, TAMU or Slackware
  360. instead.
  361.  
  362. All of these releases are available via anonymous FTP from the Linux
  363. archive sites [Q2.4 `Where can I get Linux material by FTP ?'].
  364.  
  365. -------------------------------------------------------------------------------
  366.  
  367. Question 2.4.  Where can I get Linux material by FTP ?
  368.  
  369. There are three main archive sites for Linux:
  370.    ftp.funet.fi (128.214.248.6)   /pub/OS/Linux
  371.    sunsite.unc.edu (152.2.22.81)  /pub/Linux
  372.    tsx-11.mit.edu (18.172.1.2)    /pub/linux
  373. The MCC-Interim release is available from:
  374.    ftp.mcc.ac.uk (130.88.200.7)   /pub/linux
  375. The TAMU release is available from:
  376.    net.tamu.edu (128.194.177.1)   /pub/linux
  377.  
  378. The contents of these sites is mirrored (copied, usually approximately
  379. daily) by a number of other sites.  Please use one close to you -- that
  380. will be faster for you and easier on the network.
  381.    src.doc.ic.ac.uk                     wuarchive.wustl.edu
  382.                                         ftp.eecs.umich.edu
  383.    ftp.informatik.tu-muenchen.de
  384.    ftp.ibr.cs.tu-bs.de                  monu1.cc.monash.edu.au
  385.    ftp.dfv.rwth-aachen.de               kuis.kyoto-u.ac.jp
  386.    ftp.informatik.rwth-aachen.de        cair.kaist.ac.kr
  387. Not all of these mirror all of the other `source' sites.
  388.  
  389. -------------------------------------------------------------------------------
  390.  
  391. Question 2.5.  I don't have FTP access.  Where do I get Linux ?
  392.  
  393. The easiest thing is probably to find a friend with FTP access.  If there
  394. is a Linux users group near you they may be able to help.
  395.  
  396. If you have a reasonably good email connection you could try the
  397. FTP-by-mail servers at mail-server@rtfm.mit.edu, ftpmail@decwrl.dec.com,
  398. ftpmail@doc.ic.ac.uk or ftp-mailer@informatik.tu-muenchen.de.
  399.  
  400. Linux is also available via traditional mail on diskette, CD-ROM and tape.
  401. The Installation HOWTO, and the file /pub/Linux/docs/distributions on
  402. sunsite.unc.edu, contains information on these distributions.
  403.  
  404. You could also try Zane Healy <healyzh@holonet.net>'s list of Linux BBS's,
  405. which is posted regularly (1st and 15th of each month) to
  406. comp.os.linux.announce and occasionally to the Fidonet and RIME UNIX
  407. echoes.
  408.  
  409. -------------------------------------------------------------------------------
  410.  
  411. Question 2.6.  I don't have Usenet access.  Where do I get information ?
  412.  
  413. Digests of postings to the comp.os.linux.* groups are available by
  414. subscribing to the bidirectional gateway at
  415. linux-*-request@news-digests.mit.edu, where * is one of announce,
  416. development, help, misc or admin.
  417.  
  418. You are strongly advised to subscribe to at least
  419. linux-announce-request@news-digests.mit.edu, as this carries important
  420. information and documentation about Linux.
  421.  
  422. Please remember to use the -request addresses for your subscription and
  423. unsubscription messages; mail to the other address is posted to the
  424. newsgroup !
  425.  
  426. -------------------------------------------------------------------------------
  427.  
  428. Question 2.7.  What's this mailing list thing at niksula.hut.fi ?
  429.  
  430. It's a multi-channel mailing list, mainly used by the developers of Linux
  431. to talk about technical issues and future developments.  Most of the
  432. channels are not intended for new users to ask their questions on.
  433.  
  434. The ANNOUNCE channel is a digest of postings to comp.os.linux.announce,
  435. for the benefit of those without Usenet access.  However since
  436. niksula.hut.fi is slow and overloaded I'd recommend subscribing to the MIT
  437. digestifier instead [Q2.6 `I don't have Usenet access.  Where do I get
  438. information ?'].
  439.  
  440. There is also a NEWBIE channel where `no question is too stupid';
  441. unfortunately it seems that few of the experienced users read that
  442. channel, probably because of all the `stupid' questions !
  443.  
  444. If you want to subscribe to one or more of the channels at the
  445. multi-channel list, send an empty mail message to
  446. linux-activists-request@niksula.hut.fi and you'll receive the instructions
  447. for operating the list subscription software.
  448.  
  449. If you want to unsubscribe send a mail message like this
  450.   From: you@domain.org
  451.   To: linux-activists-request@niksula.hut.fi
  452.   Subject: irrelevant
  453.  
  454.   X-Mn-Admin: leave CHANNEL
  455. to leave a channel called CHANNEL.  Do *not* put an X-Mn-Key line in your
  456. message - that will cause it to be posted to the list.
  457.  
  458. Note that you *must* remember to unsubscribe *before* you change your
  459. email address, as due to a design flaw in the list server it is virtually
  460. impossible to get yourself unsubscribed after such a change.
  461.  
  462. -------------------------------------------------------------------------------
  463.  
  464. Question 2.8.  Are the newsgroups archived anywhere ?
  465.  
  466. Yes.  ftp.funet.fi and tsx-11.mit.edu contain archives of both
  467. comp.os.linux.announce and the old group comp.os.linux, in their Linux
  468. areas.  The comp.os.linux.announce archives are mirrored from /usenet on
  469. src.doc.ic.ac.uk (which also contains another archive of comp.os.linux).
  470.  
  471. ===============================================================================
  472.  
  473. Section 3.  Compatibility with other operating systems
  474.  
  475.  Q3.1        Can Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?
  476.  Q3.2        How do I access files on my DOS partition or floppy ?
  477.  Q3.3        Can I use my Stacked/DBLSPC/etc. DOS drive ?
  478.  Q3.4        Can I access OS/2 HPFS, BSD FFS, Mac, Amiga, etc filesystems ?
  479.  Q3.5        Can I run Microsoft Windows programs under Linux ?
  480.  Q3.6        How can I boot Linux from OS/2's Boot Manager ?
  481.  
  482. -------------------------------------------------------------------------------
  483.  
  484. Question 3.1.  Can Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?
  485.  
  486. Yes.  Linux uses the standard PC partitioning scheme, so it can share your
  487. disk with other operating systems.  Then you can use Linux's fdisk to
  488. change the type to Linux.  See the Installation HOWTO for more details.
  489.  
  490. Linux can read and write the files on your DOS and OS/2 FAT partitions and
  491. floppies using either the DOS filesystem type built into the kernel or
  492. mtools.  There is a DOS emulator (look on tsx-11.mit.edu in
  493. /pub/linux/ALPHA/dosemu) which can run DOS itself and some (but not all)
  494. DOS applications.
  495.  
  496. Linux can also access Minix filesystems.
  497.  
  498. -------------------------------------------------------------------------------
  499.  
  500. Question 3.2.  How do I access files on my DOS partition or floppy ?
  501.  
  502. Use the DOS filesystem, i.e. type, for example:
  503.         mkdir /dos
  504.         mount -t msdos -o conv=text,umask=022,uid=100,gid=100 /dev/hda3 /dos
  505.  
  506. You can use the conv=text/binary/auto, umask=nnn, uid=nnn and gid=nnn
  507. options to control the automatic line-ending conversion, permissions and
  508. ownerships of the files in the DOS filesystem as they appear under Linux.
  509. If you mount your DOS filesystem by putting it in your /etc/fstab you can
  510. record the options (comma-separated) there, instead of defaults.
  511.  
  512. Alternatively you can use `mtools', available in both binary and source
  513. form on the FTP sites -- see Q2.3 `How do I install Linux ?'.
  514.  
  515. -------------------------------------------------------------------------------
  516.  
  517. Question 3.3.  Can I use my Stacked/DBLSPC/etc. DOS drive ?
  518.  
  519. Not easily.  You can access them from within the DOS emulator [Q3.1 `Can
  520. Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?'], but not as a normal
  521. filesystem under Linux or using mtools.
  522.  
  523. -------------------------------------------------------------------------------
  524.  
  525. Question 3.4.  Can I access OS/2 HPFS, BSD FFS, Mac, Amiga, etc filesystems ?
  526.  
  527. There is no support for most of those yet.
  528.  
  529. There is read-only support for OS/2's HPFS.
  530.  
  531. -------------------------------------------------------------------------------
  532.  
  533. Question 3.5.  Can I run Microsoft Windows programs under Linux ?
  534.  
  535. Not yet.  There is a project, known as WINE, to build an MS Windows
  536. emulator for Linux, but it is not ready for users yet.  Don't ask about it
  537. unless you think you can contribute; look out for the status reports in
  538. comp.os.linux.announce.
  539.  
  540. The advert from Softlanding (producers of SLS) stating that Linux could
  541. run MS Windows binaries was at best grossly exaggerated; the word `lie'
  542. springs readily to mind.
  543.  
  544. In the meantime if you need to run MS Windows programs your best bet is
  545. probably to reboot when you want to switch environments.  LILO (the Linux
  546. bootloader) has the facility for a boot menu --- see its documentation for
  547. more details.
  548.  
  549. -------------------------------------------------------------------------------
  550.  
  551. Question 3.6.  How can I boot Linux from OS/2's Boot Manager ?
  552.  
  553. 1. Create a partition using OS/2's FDISK (Not Linux's fdisk).
  554.  
  555. 2. Format the partition under OS/2, either with FAT or HPFS. This is so
  556. that OS/2 knows about the partition being formatted.
  557.  
  558. 3. Add the partition to the boot manager.
  559.  
  560. 4. Boot Linux, and create a filesystem on the partition using mkfs -t ext2
  561. or mke2fs.  At this point you may, if you like, use Linux' fdisk to change
  562. the partition type code of the new partition to type 83 (Linux Native) --
  563. this may help some automated installation scripts find the right partition
  564. to use.
  565.  
  566. 5. Install Linux on the partition.
  567.  
  568. 6. Install LILO on the Linux partition -- NOT on the master boot record of
  569. the hard drive.  This installs LILO as a second-stage boot loader on the
  570. Linux partition itself, to start up the kernel specified in the LILO
  571. config file.  To do this you should put
  572.    boot = /dev/hda2
  573. (where /dev/hda2 is the *partition* you want to boot off) in your
  574. /etc/lilo/config or /etc/lilo.config file.
  575.  
  576. ===============================================================================
  577.  
  578. Section 4.  Linux's handling of filesystems, disks and drives
  579.  
  580.  Q4.1        How do I format and create a filesystem on a floppy ?
  581.  Q4.2        I get nasty messages about inodes, blocks, and the suchlike
  582.  Q4.3        My swap area isn't working.
  583.  Q4.4        How can I have more than 16Mb of swap ?
  584.  Q4.5        How do I remove LILO so my system boots DOS again ?
  585.  Q4.6        Why can't I use fdformat except as root ?
  586.  Q4.7        Is there something like Stacker or Doublespace for Linux ?
  587.  
  588. -------------------------------------------------------------------------------
  589.  
  590. Question 4.1.  How do I format and create a filesystem on a floppy ?
  591.  
  592. For a 3.5 inch high density floppy:
  593.    fdformat /dev/fd0H1440
  594.    mkfs -t ext2 /dev/fd0H1440 1440
  595. For a 5.25 floppy inch use fd0h1200 and 1200 as appropriate.  For the `B'
  596. drive use fd1 instead of fd0.  Full details of which floppy devices do
  597. what can be found in the Linux Device List [Q2.1 `Where can I get the
  598. HOWTOs and other documentation ?'].  If you don't have the fsutils package
  599. you'll have to run mke2fs instead of mkfs -t ext2.
  600.  
  601. The first command low-level formats the floppy; the second creates an
  602. empty filesystem on it.  After doing this you can mount the floppy like a
  603. hard disk partition and simply cp and mv files, etc.
  604.  
  605. -------------------------------------------------------------------------------
  606.  
  607. Question 4.2.  I get nasty messages about inodes, blocks, and the suchlike
  608.  
  609. You probably have a corrupted filesystem, probably caused by not shutting
  610. Linux down properly before turning off the power or resetting.  You need
  611. to use a recent shutdown program to do this --- for example, the one
  612. included in the bootutils package, available on sunsite and tsx-11.
  613.  
  614. If you're lucky the program fsck (or e2fsck or xfsck as appropriate if you
  615. don't have the fsutils package) will be able to repair your filesystem; if
  616. you're unlucky the filesystem is trashed and you'll have to reinitialise
  617. it with mkfs (or mke2fs, mkxfs etc.) it and restore from a backup.
  618.  
  619. NB don't try to check a filesystem that's mounted read-write - this
  620. includes the root partition if you don't see
  621.    VFS: mounted root ... read-only
  622. at boot time.
  623.  
  624. -------------------------------------------------------------------------------
  625.  
  626. Question 4.3.  My swap area isn't working.
  627.  
  628. When you boot (or enable swapping manually) you should see
  629.         Adding Swap: NNNNk swap-space
  630.  
  631. If you don't see any messages at all you are probably missing swapon -av
  632. (the command to enable swapping) in your /etc/rc or /etc/rc.local (the
  633. system startup scripts), or have forgotten to make the right entry in
  634. /etc/fstab:
  635.         /dev/hda2       none       swap       sw
  636. for example.
  637.  
  638. If you see
  639.         Unable to find swap-space signature
  640. you have forgotten to run mkswap.  See the manpage for details; it works
  641. much like mkfs.
  642.  
  643. Check the Installation HOWTO for detailed instructions of how to set up a
  644. swap area.
  645.  
  646. -------------------------------------------------------------------------------
  647.  
  648. Question 4.4.  How can I have more than 16Mb of swap ?
  649.  
  650. Use a recent kernel -- From at least 0.99.14 Linux can have swap
  651. partitions of up to 128Mb.
  652.  
  653. If you use an older kernel you have to set up more than one swap partition
  654. or swapfile.  Linux only supports swap area sizes up to 16Mb, but you can
  655. set up and configure several swap areas and Linux will use them all.
  656.  
  657. -------------------------------------------------------------------------------
  658.  
  659. Question 4.5.  How do I remove LILO so my system boots DOS again ?
  660.  
  661. Using DOS (MS-DOS 5.0 or later, or OS/2), type FDISK /MBR.  This will
  662. restore a standard MS-DOS Master Boot Record.  If you have DR-DOS 6.0, go
  663. into FDISK in the normal way and then select the `Re-write Master Boot
  664. Record' option.
  665.  
  666. If you don't have DOS 5 or DR-DOS you need to have the boot sector that
  667. LILO saved when you first installed it.  You did keep that file, didn't
  668. you ?  It's probably called boot.0301 or some such.  Type
  669.         dd if=boot.0301 of=/dev/hda
  670. (or sda if you're using a SCSI disk).  This will also wipe out your
  671. partition table, so beware !
  672.  
  673. Note that the DOS MBR boots whichever (single!) partition is flagged as
  674. `active'; you may need to use fdisk to set and clear the active flags on
  675. partitions appropriately.
  676.  
  677. -------------------------------------------------------------------------------
  678.  
  679. Question 4.6.  Why can't I use fdformat except as root ?
  680.  
  681. The system call to format a floppy may only be done as root, regardless of
  682. the permissions of /dev/fd0*.  If you want any user to be able to format a
  683. floppy try getting the fdformat2 program; this works around the problems
  684. by being setuid to root.
  685.  
  686. -------------------------------------------------------------------------------
  687.  
  688. Question 4.7.  Is there something like Stacker or Doublespace for Linux ?
  689.  
  690. Currently none of the Linux filesystems can do compression in the
  691. filesystem.
  692.  
  693. There is a transparently uncompressing C library, which is a drop-in
  694. replacement for the standard C library.  It allows programs to read
  695. compressed (ie, GNU zipped) files as if they were not compressed.  You
  696. install it, and then you can compress files using gzip and have programs
  697. still find them.  Look on sunsite.unc.edu in /pub/Linux/libs.  The author
  698. is Alan Knaff <Alain.Knaff@imag.fr>.
  699.  
  700. There is also a package available called tcx (Transparently Compressed
  701. Executables) which allows you to keep infrequently used executables
  702. compressed and only uncompress them temporarily while you use them.
  703. You'll find it on the Linux FTP sites [Q2.4 `Where can I get Linux
  704. material by FTP ?']; it was also announced in comp.os.linux.announce.
  705. Note - this is not the same as gzexe, which is an inferior implementation
  706. of the same concept.
  707.  
  708. ===============================================================================
  709.  
  710. Section 5.  Porting, compiling and obtaining programs
  711.  
  712.  Q5.1        What is ld.so and where do I get it ?
  713.  Q5.2        Has anyone ported / compiled / written XXX for Linux ?
  714.  Q5.3        How do I port XXX to Linux ?
  715.  Q5.4        Can I use code or a compiler compiled for a 486 on my 386 ?
  716.  Q5.5        GCC sometimes uses huge amounts of virtual memory and thrashes
  717.  Q5.6        What does gcc -O6 do ?
  718.  Q5.7        Where are <linux/*.h> and <asm/*.h> ?
  719.  Q5.8        I get errors when I try to compile the kernel.
  720.  
  721. -------------------------------------------------------------------------------
  722.  
  723. Question 5.1.  What is ld.so and where do I get it ?
  724.  
  725. ld.so is the new dynamic library loader.  Each binary using shared
  726. libraries used to have about 3K of start-up code to find and load the
  727. shared libraries.  Now that code has been put in a special shared library,
  728. /lib/ld.so, where all binaries can look for it, so that it wastes less
  729. disk space, and can be upgraded more easily.
  730.  
  731. It can be obtained from tsx-11.mit.edu in /pub/linux/packages/GCC and
  732. mirror sites thereof.  The latest version at the time of writing is
  733. ld.so.1.3.tar.gz.
  734.  
  735. -------------------------------------------------------------------------------
  736.  
  737. Question 5.2.  Has anyone ported / compiled / written XXX for Linux ?
  738.  
  739. First, look in the Linux Software Map (LSM) --- it's in the docs directory
  740. on sunsite.unc.edu, and on the other FTP sties.
  741.  
  742. Check the FTP sites (see Q2.1 `Where can I get the HOWTOs and other
  743. documentation ?') first --- search the find-ls or INDEX files for
  744. appropriate strings.
  745.  
  746. If you don't find anything, you could either download the sources to the
  747. program yourself and compile them -- see Q5.3 `How do I port XXX to Linux
  748. ?' -- or, if it's a large package which may require some porting, post a
  749. message to the newsgroup.
  750.  
  751. If you compile a largeish program please upload it to one or more of the
  752. FTP sites and post a message to comp.os.linux.announce (submit your
  753. posting to linux-announce@tc.cornell.edu).
  754.  
  755. If you're looking for an application-type program the chances are someone
  756. has already written a free verson.  Try reading the FAQ in
  757. comp.sources.wanted for instructions on how to find sources.
  758.  
  759. -------------------------------------------------------------------------------
  760.  
  761. Question 5.3.  How do I port XXX to Linux ?
  762.  
  763. In general Unix programs need very little porting.  Simply follow the
  764. installation instructions.  If you don't know and don't know how to find
  765. out the answers to some of the questions asked during or by the
  766. installation procedure you can guess, but this tends to produce buggy
  767. programs.  In this case you're probably better off asking someone else to
  768. do the port.
  769.  
  770. If you have a BSD-ish program you should try using -I/usr/include/bsd and
  771. -lbsd on the appropriate parts of the compilation lines.
  772.  
  773. -------------------------------------------------------------------------------
  774.  
  775. Question 5.4.  Can I use code or a compiler compiled for a 486 on my 386 ?
  776.  
  777. Yes.
  778.  
  779. The -m486 option to GCC, which is used to compile binaries for 486
  780. machines, merely makes GCC change certain optimisations.  This makes for
  781. slightly larger binaries which run somewhat faster on a 486.  They still
  782. work fine on a 386, though, with little performance hit.
  783.  
  784. GCC can be configured for a 386 or 486; the only difference is that
  785. configuring it for a 386 makes -m386 the default and configuring for a 486
  786. makes -m486 the default; in either case these can be overriden on a
  787. per-compilation basis or by editing /usr/lib/gcc-lib/i*-linux/n.n.n/specs.
  788.  
  789. -------------------------------------------------------------------------------
  790.  
  791. Question 5.5.  GCC sometimes uses huge amounts of virtual memory and thrashes
  792.  
  793. GCC has a bug which makes it use lots of memory if you try to compile a
  794. program which has a large static data table in it.  Add more swap if
  795. necessary and just grin and bear it; it'll work in the end.
  796.  
  797. This bug will be fixed when GCC 2.5 comes out.
  798.  
  799. -------------------------------------------------------------------------------
  800.  
  801. Question 5.6.  What does gcc -O6 do ?
  802.  
  803. The same as -O2; any number greater than 2 works just like 2.  It's put
  804. there for luck, I think.
  805.  
  806. -------------------------------------------------------------------------------
  807.  
  808. Question 5.7.  Where are <linux/*.h> and <asm/*.h> ?
  809.  
  810. These are in the directories /usr/include/linux and /usr/include/asm.
  811.  
  812. However they should be symbolic links to your kernel sources in
  813. /usr/src/linux and not real directories.
  814.  
  815. If you don't have the kernel sources download them --- see Q6.15 `How do I
  816. upgrade my kernel ?'.
  817.  
  818. Then use ln to create the links:
  819.         ln -sf /usr/src/linux/include/linux /usr/include/linux
  820.         ln -sf /usr/src/linux/include/asm /usr/include/asm
  821.  
  822. -------------------------------------------------------------------------------
  823.  
  824. Question 5.8.  I get errors when I try to compile the kernel.
  825.  
  826. Make sure that /usr/include/linux and /usr/include/asm aren't actual
  827. directories but instead symbolic links to /usr/src/linux/include/linux and
  828. /usr/src/linux/include/asm respectively.
  829.  
  830. If necessary, delete them using rm and then use ln -s to make the links as
  831. in Q5.7 `Where are <linux/*.h> and <asm/*.h> ?'.
  832.  
  833. ===============================================================================
  834.  
  835. Section 6.  Miscellaneous questions and problems
  836.  
  837.  Q6.1        Setuid scripts don't seem to work.
  838.  Q6.2        Free memory as reported by free keeps shrinking.
  839.  Q6.3        What is a BogoMip ?
  840.  Q6.4        How do I set the timezone ?
  841.  Q6.5        What version of Linux and what machine name am I using ?
  842.  Q6.6        When I add more memory it slows to a crawl.
  843.  Q6.7        Some programs (e.g. xdm) won't let me log in.
  844.  Q6.8        Some programs let me log in with no password.
  845.  Q6.9        My machine runs very slowly when I run GCC / X / ...
  846.  Q6.10       I can only log in as root.
  847.  Q6.11       How do I stop producing core files ?
  848.  Q6.12       My screen is all full of weird characters instead of letters.
  849.  Q6.13       What is a .gz file ? And a .tgz ? And ... ?
  850.  Q6.14       I have screwed up my system and can't log in to fix it.
  851.  Q6.15       How do I upgrade my kernel ?
  852.  Q6.16       Can I have more than 3 serial ports by sharing interrupts ?
  853.  Q6.17       Emacs just dumps core.
  854.  Q6.18       How do I make a bootable floppy ?
  855.  Q6.19       How do I remap my keyboard to UK, French, etc. ?
  856.  
  857. -------------------------------------------------------------------------------
  858.  
  859. Question 6.1.  Setuid scripts don't seem to work.
  860.  
  861. That's right.  This feature has been specifically disabled in the Linux
  862. kernel because setuid scripts are almost always a security hole.  If you
  863. want to know why read the FAQ for comp.unix.questions.
  864.  
  865. -------------------------------------------------------------------------------
  866.  
  867. Question 6.2.  Free memory as reported by free keeps shrinking.
  868.  
  869. The `free' figure printed by free doesn't include memory used as a disk
  870. buffer cache - shown in the `buffers' column.  If you want to know how
  871. much memory is really free add the `buffers' amount to `free'.
  872.  
  873. The disk buffer cache tends to grow soon after starting Linux up, as you
  874. load more programs and use more files and the contents get cached.  It
  875. will stabilise after a while.
  876.  
  877. -------------------------------------------------------------------------------
  878.  
  879. Question 6.3.  What is a BogoMip ?
  880.  
  881. `BogoMips' is a contraction of `Bogus MIPS'.  MIPS stands for (depending
  882. who you listen to) Millions of Instructions per Second, or Meaningless
  883. Indication of Processor Speed.
  884.  
  885. The number printed at boot-time is the result of a kernel timing
  886. calibration, used for delay loops by some device drivers.
  887.  
  888. As a very approximate guide for a 486DX (not clock doubled), the BogoMips
  889. will be approximately the clock rate * 0.5; for a 386DX (no coprocessor)
  890. it will be more like the clock rate * 0.24 - 1.9.
  891.  
  892. If the number you're seeing is wildly lower than this you may have the
  893. Turbo button or CPU speed set incorrectly, or have some kind of caching
  894. problem [as described in Q6.6 `When I add more memory it slows to a
  895. crawl.'.]
  896.  
  897. -------------------------------------------------------------------------------
  898.  
  899. Question 6.4.  How do I set the timezone ?
  900.  
  901. Change directory to /usr/lib/zoneinfo; get the timezone package if you
  902. don't have this directory.  The source can be found on sunsite.unc.edu in
  903. /pub/Linux/system/Admin/timesrc-1.2.tar.gz.
  904.  
  905. Then make a symbolic link named localtime pointing to one of the files in
  906. this directory (or a subdirectory), and one called posixrules pointing to
  907. localtime.  For example:
  908.    ln -sf US/Mountain localtime
  909.    ln -sf localtime posixrules
  910. This change will take effect immediately - try date.
  911.  
  912. Don't try to use the TZ variable - leave it unset.
  913.  
  914. -------------------------------------------------------------------------------
  915.  
  916. Question 6.5.  What version of Linux and what machine name am I using ?
  917.  
  918. Type:
  919.    uname -a
  920.  
  921. -------------------------------------------------------------------------------
  922.  
  923. Question 6.6.  When I add more memory it slows to a crawl.
  924.  
  925. This is quite a common symptom of a failure to cache the additional
  926. memory.  The exact problem depends on your motherboard.
  927.  
  928. Sometimes you have to enable caching of certain regions in your BIOS
  929. setup.  Look in the CMOS setup and see if there is an option to cache the
  930. new memory area which is currently switched off.  This is apparently most
  931. common on a 486.
  932.  
  933. Sometimes the RAMs have to be in certain sockets to be cached.
  934.  
  935. Sometimes you have to set jumpers to enable the caching.
  936.  
  937. Some motherboards don't cache all the RAM if you have more RAM per amount
  938. of cache than they expect.  Usually a full 256K cache will solve this
  939. problem.
  940.  
  941. If in doubt, check your motherboard manual.  If you still can't fix it
  942. because the documentation is inadequate you might like to post a message
  943. giving *all* the details - make, model number, date code, etc. so that
  944. other Linux users can avoid it.
  945.  
  946. -------------------------------------------------------------------------------
  947.  
  948. Question 6.7.  Some programs (e.g. xdm) won't let me log in.
  949.  
  950. You are probably using non-shadow-password programs but are using shadow
  951. passwords.
  952.  
  953. If so, you have to get or compile a shadow password version of the
  954. program(s) in question.  The shadow password suite can be found in
  955. (amongst other places):
  956.    tsx-11.mit.edu:/pub/linux/sources/usr.bin/shadow-*
  957. This is the source code; you will probably find the binaries in
  958. .../linux/binaries/usr.bin.
  959.  
  960. -------------------------------------------------------------------------------
  961.  
  962. Question 6.8.  Some programs let me log in with no password.
  963.  
  964. You probably have the same problem as in Q6.7 `Some programs (e.g. xdm)
  965. won't let me log in.', with an added wrinkle:
  966.  
  967. If you are using shadow passords you should put an asterisk in the
  968. password field of /etc/passwd for each account, so that if a program
  969. doesn't know about the shadow passwords it won't think it's a passwordless
  970. account and let anyone in.
  971.  
  972. -------------------------------------------------------------------------------
  973.  
  974. Question 6.9.  My machine runs very slowly when I run GCC / X / ...
  975.  
  976. You probably don't have any swap enabled.  You need to enable swapping to
  977. allow Linux to page out bits of data programs aren't using at the moment
  978. to disk to make more room for other programs and data.  If you don't Linux
  979. has to keep data in memory and throw away in-memory copies of programs
  980. (which are paged straight from the filesystem) and so less and less
  981. program is in memory and everything runs very slowly.
  982.  
  983. See the Installation HOWTO and the Installation and Getting Started Guide
  984. [Q2.1 `Where can I get the HOWTOs and other documentation ?'] for details
  985. of how to set up a swap area; see also Q4.3 `My swap area isn't working.'.
  986.  
  987. Alternatively you may have too little real memory.  If you have less RAM
  988. than all the programs you're running at once use Linux will use your hard
  989. disk instead and thrash horribly.  The solution in this case is to not run
  990. so many things at once or to buy more memory.  You can also reclaim some
  991. memory by compiling and using a kernel with less options configured.  See
  992. Q6.15 `How do I upgrade my kernel ?'.
  993.  
  994. -------------------------------------------------------------------------------
  995.  
  996. Question 6.10.  I can only log in as root.
  997.  
  998. You probably have some permission problems, or you have a file
  999. /etc/nologin.
  1000.  
  1001. If the latter put rm -f /etc/nologin in your /etc/rc or /etc/rc.local.
  1002.  
  1003. Otherwise check the permissions on your shell, and any filenames which
  1004. appear in error messages, and also the directories containing these files
  1005. all the way back up the tree to the root directory.
  1006.  
  1007. -------------------------------------------------------------------------------
  1008.  
  1009. Question 6.11.  How do I stop producing core files ?
  1010.  
  1011. If you use bash put
  1012.    ulimit -c 0
  1013. in your .shrc or .bashrc; if you use tcsh put
  1014.    limit coredumpsize 0
  1015. in your .cshrc.  For other shells check the shell's manpage.
  1016.  
  1017. -------------------------------------------------------------------------------
  1018.  
  1019. Question 6.12.  My screen is all full of weird characters instead of letters.
  1020.  
  1021. You probably sent some binary data to your screen by mistake.  Type echo
  1022. ^V^O (that's E C H O space control-V control-O return) to fix it.
  1023.  
  1024. -------------------------------------------------------------------------------
  1025.  
  1026. Question 6.13.  What is a .gz file ? And a .tgz ? And ... ?
  1027.  
  1028. .gz (and .z) files have been compressed using GNU gzip.  You have to get a
  1029. copy of gunzip (included in the gzip distribution and with most Linux
  1030. installations) to unpack the file.
  1031.  
  1032. .taz and .tz are tarfiles (made with Unix tar) compressed using standard
  1033. Unix compress.
  1034.  
  1035. .tgz (or .tpz) is a tarfile compressed with gzip.
  1036.  
  1037. The file command can often tell you what a file is.
  1038.  
  1039. If you find that gzip complains when you try to uncompress a gzipped file
  1040. you probably downloaded it in ASCII mode by mistake.  You must download
  1041. most things in binary mode - remember to type binary as a command in FTP
  1042. before using get to get the file.
  1043.  
  1044. -------------------------------------------------------------------------------
  1045.  
  1046. Question 6.14.  I have screwed up my system and can't log in to fix it.
  1047.  
  1048. Reboot from an emergency floppy, for example the SLS a1 disk or the MCC
  1049. installation boot floppy.  Get to a shell prompt and mount your hard disk
  1050. with something like
  1051.         mount -t ext2 /dev/hda1 /mnt
  1052.  
  1053. Then your filesystem is available under the directory /mnt and you can fix
  1054. the problem.  Remember to unmount your hard disk before rebooting (cd back
  1055. down to / first or it will say it's busy).
  1056.  
  1057. -------------------------------------------------------------------------------
  1058.  
  1059. Question 6.15.  How do I upgrade my kernel ?
  1060.  
  1061. See the README which comes with the kernel release, in
  1062.         ftp.funet.fi:/pub/OS/Linux/PEOPLE/Linus
  1063. and mirrors thereof.  Try to get it from a closer site if possible;
  1064. ftp.funet.fi is a very busy site and therefore slow -- see Q2.3 `How do I
  1065. install Linux ?'.
  1066.  
  1067. Remember that to make the new kernel boot you must run LILO after copying
  1068. the kernel into your root partition.
  1069.  
  1070. -------------------------------------------------------------------------------
  1071.  
  1072. Question 6.16.  Can I have more than 3 serial ports by sharing interrupts ?
  1073.  
  1074. Not without some trickery.  This is a limitation of the ISA bus
  1075. architecture.
  1076.  
  1077. See the Serial HOWTO for information about how to work around this
  1078. problem.
  1079.  
  1080. -------------------------------------------------------------------------------
  1081.  
  1082. Question 6.17.  Emacs just dumps core.
  1083.  
  1084. You probably have the X version of Emacs that comes with SLS.  It doesn't
  1085. work without the X libraries.  The solution is to install X Windows or get
  1086. a newer Emacs binary without any X Windows support.
  1087.  
  1088. -------------------------------------------------------------------------------
  1089.  
  1090. Question 6.18.  How do I make a bootable floppy ?
  1091.  
  1092. Make a filesystem on it with bin, etc and lib directories -- everything
  1093. you need.  Install a kernel on it and arrange to have LILO boot it from
  1094. the floppy (see the LILO documentation, in lilo.u.*.ps).
  1095.  
  1096. If you build the kernel (or tell LILO to tell the kernel) to have a
  1097. ramdisk the same size as the floppy the ramdisk will be loaded at
  1098. boot-time and mounted as root in place of the floppy.
  1099.  
  1100. -------------------------------------------------------------------------------
  1101.  
  1102. Question 6.19.  How do I remap my keyboard to UK, French, etc. ?
  1103.  
  1104. For recent kernels, get kbd*.tar.gz from the same place as you got the
  1105. kernel source.  Make sure you get the appropriate version; you have to use
  1106. the right keyboard-mapping package to go with your kernel version.  The
  1107. latest at the time of writing is kbd-0.81.tar.gz, which works with kernel
  1108. versions from 0.99pl12 to at least 0.99pl14.
  1109.  
  1110. For older kernels you have to edit the top-level kernel Makefile, in
  1111. /usr/src/linux.
  1112.  
  1113. ===============================================================================
  1114.  
  1115. Section 7.  Frequently Encountered Error messages
  1116.  
  1117.  Q7.1        INET: Warning: old style ioctl(IP_SET_DEV) called!
  1118.  Q7.2        ld: unrecognized option '-m486'
  1119.  Q7.3        GCC says Internal compiler error
  1120.  Q7.4        make says Error 139
  1121.  Q7.5        df says Cannot read table of mounted filesystems
  1122.  Q7.6        shell-init: permission denied when I log in.
  1123.  Q7.7        No utmp entry.  You must exec ... when I log in.
  1124.  Q7.8        EXT2-fs: warning: mounting unchecked filesystem
  1125.  Q7.9        fdisk says cannot use nnn sectors of this partition
  1126.  Q7.10       fdisk says partition n has an odd number of sectors
  1127.  
  1128. -------------------------------------------------------------------------------
  1129.  
  1130. Question 7.1.  INET: Warning: old style ioctl(IP_SET_DEV) called!
  1131.  
  1132. You are trying to use the old network configuration utilities; the new
  1133. ones can be found on tsx-11.mit.edu in
  1134. /pub/linux/packages/net/net-2/binaries.
  1135.  
  1136. Note that they cannot be used just like the old-style programs; see the
  1137. NET-2 HOWTO for instructions on how to set up networking correctly.
  1138.  
  1139. -------------------------------------------------------------------------------
  1140.  
  1141. Question 7.2.  ld: unrecognized option '-m486'
  1142.  
  1143. You have an old version of ld.  Install a newer binutils package -- this
  1144. will contain an updated ld:
  1145.    tsx-11.mit.edu:/pub/linux/packages/GCC/binutils.tar.z
  1146.  
  1147. -------------------------------------------------------------------------------
  1148.  
  1149. Question 7.3.  GCC says Internal compiler error
  1150.  
  1151. If the fault is repeatable (ie, it always happens at the same place in the
  1152. same file) you have discovered a bug in GCC.  See the GCC Info
  1153. documentation (type Control-h i in Emacs, and select GCC from the menu)
  1154. for details on how to report this -- make sure you have the latest version
  1155. though.
  1156.  
  1157. Note that this is probably not a Linux-specific problem; unless you were
  1158. compiling a program many other Linux users also compile you should not
  1159. post your bug report to any of the comp.os.linux groups.
  1160.  
  1161. If the problem is not repeatable you are very probably experiencing memory
  1162. corruption --- see Q7.4 `make says Error 139'.
  1163.  
  1164. -------------------------------------------------------------------------------
  1165.  
  1166. Question 7.4.  make says Error 139
  1167.  
  1168. Your compiler driver (gcc) dumped core.  You probably have a buggy or old
  1169. version of GCC --- get the latest release.
  1170.  
  1171. If this doesn't fix the problem you are probably having problems with
  1172. memory corruption.  Check that the clock rate, wait states and refresh
  1173. timing for your SIMMs are correct.  If so you may have some dodgy SIMMs.
  1174. Linux, like any Unix, is a very good memory tester.
  1175.  
  1176. -------------------------------------------------------------------------------
  1177.  
  1178. Question 7.5.  df says Cannot read table of mounted filesystems
  1179.  
  1180. There is probably something wrong with your /etc/mtab or /etc/fstab files.
  1181. If you have a reasonably new version of mount, /etc/mtab should be emptied
  1182. or deleted at boot time (in /etc/rc or /etc/rc.local), using something
  1183. like
  1184.    rm -f /etc/mtab*
  1185.  
  1186. Some versions of SLS have an entry for the root partition in /etc/mtab
  1187. made in /etc/rc by using rdev.  This is incorrect -- the newer versions of
  1188. mount do this automatically.
  1189.  
  1190. Other versions of SLS have a line in /etc/fstab that looks like:
  1191.     /dev/sdb1   /root   ext2   defaults
  1192. This is wrong.  /root should read simply /.
  1193.  
  1194. -------------------------------------------------------------------------------
  1195.  
  1196. Question 7.6.  shell-init: permission denied when I log in.
  1197.  
  1198. Your root directory and all the directories up to your home directory must
  1199. be readable and executable by everybody.  See the manpage for chmod or a
  1200. book on Unix for how to fix the problem.
  1201.  
  1202. -------------------------------------------------------------------------------
  1203.  
  1204. Question 7.7.  No utmp entry.  You must exec ... when I log in.
  1205.  
  1206. Your /etc/utmp is screwed up.  You should have
  1207.    > /etc/utmp
  1208. in your /etc/rc or /etc/rc.local.  See Q6.14 `I have screwed up my system
  1209. and can't log in to fix it.' for how to be able to do this.
  1210.  
  1211. -------------------------------------------------------------------------------
  1212.  
  1213. Question 7.8.  EXT2-fs: warning: mounting unchecked filesystem
  1214.  
  1215. You need to run e2fsck (or fsck -t ext2 if you have the fsutils package)
  1216. with the -a option to get it to clear the `dirty' flag, and then cleanly
  1217. unmount the partition during each shutdown.
  1218.  
  1219. The easiest way to do this is to get the bootutils package, available on
  1220. sunsite and tsx-11.
  1221.  
  1222. NB don't try to check a filesystem that's mounted read-write - this
  1223. includes the root partition if you don't see
  1224.    VFS: mounted root ... read-only
  1225. at boot time.
  1226.  
  1227. -------------------------------------------------------------------------------
  1228.  
  1229. Question 7.9.  fdisk says cannot use nnn sectors of this partition
  1230.  
  1231. Originally Linux only supported the Minix filesystem, which cannot use
  1232. more than 64Mb per parition.  This limitation is not present in the more
  1233. advanced filesystems now available, such as ext2fs (the 2nd version of the
  1234. Extended Filesystem) and xiafs (Qi Xia's filesystem).
  1235.  
  1236. If you intend to use ext2fs or xiafs you can ignore the message.
  1237.  
  1238. -------------------------------------------------------------------------------
  1239.  
  1240. Question 7.10.  fdisk says partition n has an odd number of sectors
  1241.  
  1242. The PC disk partitioning scheme works in 512-byte sectors, but Linux uses
  1243. 1K blocks.  If you have a partition with an odd number of sectors the last
  1244. sector is wasted.  Ignore the message.
  1245.  
  1246. ===============================================================================
  1247.  
  1248. Section 8.  X Windows
  1249.  
  1250.  Q8.1        Does Linux support X Windows ?
  1251.  Q8.2        Where can I get an XConfig for my video card and monitor ?
  1252.  Q8.3        I can't get X Windows to work right.
  1253.  
  1254. -------------------------------------------------------------------------------
  1255.  
  1256. Question 8.1.  Does Linux support X Windows ?
  1257.  
  1258. Yes.  You need to have a video card which is supported by XFree86 2.0.
  1259. See the Linux XFree86 HOWTO for more details.
  1260.  
  1261. Some of the Linux releases -- MCC, for example -- don't come with X
  1262. Windows already included; however you can easily download and install it
  1263. from /pub/Linux/X11/Xfree86-2.0 on sunsite.unc.edu and its mirror sites.
  1264. Read the XFree86 HOWTO for installation instructions.
  1265.  
  1266. Other releases -- TAMU, Slackware and SLS, for example -- come with X
  1267. Windows already included
  1268.  
  1269. -------------------------------------------------------------------------------
  1270.  
  1271. Question 8.2.  Where can I get an XConfig for my video card and monitor ?
  1272.  
  1273. It's not that hard to roll your own -- read the instructions that came
  1274. with XFree86-2.0, in /usr/X386/lib/X11/etc.  The file you probably most
  1275. need to look at is README.Config.  See also the Linux XFree86 HOWTO.
  1276.  
  1277. -------------------------------------------------------------------------------
  1278.  
  1279. Question 8.3.  I can't get X Windows to work right.
  1280.  
  1281. Read the XFree86 HOWTO - note the question and answer section.
  1282.  
  1283. Try reading to comp.windows.x.i386unix -- specifically read the the FAQ
  1284. for that group.
  1285.  
  1286. Please don't post X Windows or XFree86 related questions to
  1287. comp.os.linux.help unless they are Linux-specific.
  1288.  
  1289. ===============================================================================
  1290.  
  1291. Section 9.  How to get further assistance
  1292.  
  1293.  Q9.1        You still haven't answered my question !
  1294.  Q9.2        What to put in a posting to comp.os.linux.help
  1295.  
  1296. -------------------------------------------------------------------------------
  1297.  
  1298. Question 9.1.  You still haven't answered my question !
  1299.  
  1300. Please read all of this answer before posting.  I know it's a bit long,
  1301. but you may be about to make a fool of yourself in front of 50000 people
  1302. and waste hundreds of hours of their time.  Don't you think it's worth it
  1303. to spend some of your time reading and following these instructions ?
  1304.  
  1305. If you think an answer is incomplete or inaccurate, please mail Ian
  1306. Jackson at <ijackson@nyx.cs.du.edu>.
  1307.  
  1308. Read the appropriate Linux Documentation Project books - see Q2.1 `Where
  1309. can I get the HOWTOs and other documentation ?'.
  1310.  
  1311. If you're a Unix newbie read the FAQ for comp.unix.questions, and those
  1312. for any of the other comp.unix.* groups that may be relevant.
  1313.  
  1314. Linux is a Unix clone, so almost everything you read there will apply to
  1315. Linux.  Those FAQs can, like all FAQs, be found on rtfm.mit.edu in
  1316. /pub/usenet/news.answers.
  1317.  
  1318. Check the relevant HOWTO for the subject in question, if there is one, or
  1319. an appropriate old-style sub-FAQ document.  Check the FTP sites.
  1320.  
  1321. Try experimenting --- that's the best way to get to know Unix and Linux.
  1322.  
  1323. Read the documentation.  Check the manpages (type man man if you don't
  1324. know about manpages) and the Info documentation (type C-h i, i.e. Control
  1325. H followed by I in Emacs) --- NB this isn't just for Emacs; for example
  1326. the GCC documentation lives here as well.  There will also often be a
  1327. README file with a package giving installation and/or usage instructions.
  1328.  
  1329. Make sure that you don't have a corrupted or out-of-date copy of the
  1330. program in question.  If possible, download it again and reinstall it ---
  1331. perhaps you made a mistake the first time.
  1332.  
  1333. Read comp.os.linux.announce --- this often contains very important
  1334. information for all Linux users.
  1335.  
  1336. X-Windows questions belong in comp.windows.x.i386unix, not in
  1337. comp.os.linux.help.  But read the group first (including the FAQ), before
  1338. you post !
  1339.  
  1340. Only if you have done all of these things and are still stuck should you
  1341. post to comp.os.linux.help; alternatively you could send email to
  1342. linux-support@sunsite.unc.edu.  Make sure you read the next question, Q9.2
  1343. `What to put in a posting to comp.os.linux.help', first.
  1344.  
  1345. -------------------------------------------------------------------------------
  1346.  
  1347. Question 9.2.  What to put in a posting to comp.os.linux.help
  1348.  
  1349. Please read carefully the following advice about how to write your
  1350. posting.  Taking heed of it will greatly increase the chances that an
  1351. expert and/or fellow user reading your posting will have enough
  1352. information and motivation to reply.
  1353.  
  1354. Make sure you give full details of the problem, including
  1355.  
  1356. * What program, exactly, you are having problems with.  Include the
  1357.   version number if known and say where you got it.  Many standard
  1358.   commands tell you their version number if you give them a --version
  1359.   option.
  1360.  
  1361. * Which Linux release you're using (MCC, Slackware, whatever) and what
  1362.   version of that release.
  1363.  
  1364. * The *exact* and *complete* text of any error messages printed.
  1365.  
  1366. * Exactly what behaviour you were expecting, and exactly what behaviour
  1367.   you observed.  A transcript of an example session is a good way of
  1368.   showing this.
  1369.  
  1370. * The contents of any configuration files used by the program in question
  1371.   and any related programs.
  1372.  
  1373. * What version of the kernel and of the shared libraries you are using.
  1374.   The kernel version can be found by typing uname -a, and the shared
  1375.   library version by typing ls -l /lib/libc.so.4.
  1376.  
  1377. * Details of what hardware you're running on, if it seems appropriate.
  1378.  
  1379. You are in little danger of making your posting too long unless you
  1380. include large chunks of source code or uuencoded files, so err on the side
  1381. of giving too much information.
  1382.  
  1383. Use a clear, detailed Subject line.  Don't put things like `doesn't work',
  1384. `Linux', `help' or `question' in it --- we already knew that ! Save the
  1385. space for the name of the program, a fragment of the error message,
  1386. summary of the unusual behaviour, etc.
  1387.  
  1388. If you are reporting an `unable to handle kernel paging request' message,
  1389. follow the instructions in the Linux kernel sources README for turning the
  1390. numbers into something more meaningful.  If you don't do this noone who
  1391. reads your post will be able to do it for you, as the mapping from numbers
  1392. to function names varies from one kernel to another.
  1393.  
  1394. Put a summary paragraph at the top of your posting.
  1395.  
  1396. At the bottom of your posting, ask for responses by email and say you'll
  1397. post a summary.  Back this up by using Followup-To: poster.  Then, do
  1398. actually post a summary in a few days or a week or so.  Don't just
  1399. concatenate the replies you got --- summarise.  Putting the word SUMMARY
  1400. in your summary's Subject line is also a good idea.
  1401.  
  1402. Make sure your posting doesn't have an inappropriate References header
  1403. line.  This marks your article as part of the thread of the article
  1404. referred to, which will often cause it to be junked by the readers with
  1405. the rest of a boring thread.  If you use (t)rn you must make sure that
  1406. when you post you use the lowercase f key; using uppercase F and deleting
  1407. the quoted text doesn't do the same thing.  However Some versions of trn
  1408. 2.x have a bug which produces this effect effen if you use f.  If this
  1409. applies to your version you can edit out the References line in the
  1410. message before you post, or just use plain Pnews to make a new posting.
  1411. You should always read the header before posting anyway.
  1412.  
  1413. Finally, remember that you should not post email sent to you personally
  1414. without the sender's permission.
  1415.  
  1416. ===============================================================================
  1417.  
  1418. Section 10.  Administrative information and acknowledgements
  1419.  
  1420.  Q10.1       Feedback is invited
  1421.  Q10.2       Formats in which this FAQ is available
  1422.  Q10.3       Authorship and acknowledgements
  1423.  
  1424. -------------------------------------------------------------------------------
  1425.  
  1426. Question 10.1.  Feedback is invited
  1427.  
  1428. Please send me your comments on this FAQ.
  1429.  
  1430. I accept submissions for the FAQ in any format;  All contributions
  1431. comments and corrections are gratefully received.
  1432.  
  1433. Please send them to <ijackson@nyx.cs.du.edu>.
  1434.  
  1435. -------------------------------------------------------------------------------
  1436.  
  1437. Question 10.2.  Formats in which this FAQ is available
  1438.  
  1439. This document is available as ASCII text, an Emacs Info document and
  1440. PostScript.
  1441.  
  1442. The ASCII and Emacs Info versions and a Lout typesetter file (from which
  1443. the PostScript is produced) are generated automatically by a Perl script
  1444. which takes as input a file in the Bizarre Format with No Name.
  1445.  
  1446. The output files linux-faq.ascii, .info and .ps and a tarfile
  1447. linux-faq.source.tar.gz, containing the BFNN source and Perl script
  1448. converter, are available in the docs directories of the major Linux FTP
  1449. sites.
  1450.  
  1451. -------------------------------------------------------------------------------
  1452.  
  1453. Question 10.3.  Authorship and acknowledgements
  1454.  
  1455. This FAQ was compiled by Ian Jackson <ijackson@nyx.cs.du.edu>, with
  1456. assistance and comments from others too numerous to mention.  It was
  1457. loosely based on the original Linux FAQ by Marc-Michel Corsini.
  1458.  
  1459. Special thanks are due to Matt Welsh, who coordinates the HOWTOs and has
  1460. written substantial portions of many of them, and to Marc-Michel Corsini.
  1461. Thanks also to the contributors to the previous Linux FAQ, and to those
  1462. sent me comments about this FAQ, and who answered questions on the
  1463. newsgroup.
  1464.  
  1465. Last but not least, thanks to Linus Torvalds and the other contributors to
  1466. Linux for giving us something to write about !
  1467.  
  1468. -- 
  1469. Ian Jackson, at home  <ijackson@nyx.cs.du.edu> or <iwj10@cus.cam.ac.uk>
  1470. PGP2 public key available on server.  Urgent email: <iwj10@phx.cam.ac.uk>
  1471. 2 Lexington Close, Cambridge, CB4 3LS, England;  phone: +44 223 64238
  1472.  
  1473.